/*
author:杨文超
email:yangwenchao@keynection.cn
*/

/*modbus serial master控制器*/

#pragma once

#include <stdint.h>                 // for standard int types definition
#include <stddef.h>                 // for NULL and std defines
#include "soc/soc.h"                // for BITN definitions
#include "esp_err.h"                // for esp_err_t
#include "geminai_modbus_common.h"      // for common defines

/*
Initialize Modbus controller and stack

@param[out] handler handler(pointer) to master data structure
@return
    - ESP_OK   Success
    - ESP_ERR_NO_MEM Parameter error
*/
esp_err_t mbc_serial_master_create(void** handler);


